<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="include.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
<%@ include file="head.jsp"%>
<title>Cart</title>
</head>

<body>
	<a href="# class=" pull-right btnbtn-success">Add Gallery</a>

	<table class="table table-bordered">
		<thead>
			<tr>
				<th width="130">&nbsp;</th>
				<th width="130">Name</th>
				<th width="70">Price</th>
				<th width="330">Overview</th>
				<th width="100">Category</th>
				<th width="100">Manufacturer</th>
				<th width="60" style="text-align: center;">&nbsp;</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${listProduct}" var="item">
				<tr>
					<td><a href="#"><img alt="" width="140" height="140"
							src="${pageContext.request.contextPath}/<spring:url value="${item.imagepath}"/>" /></a></td>
					<td>${item.name}</td>
					<td>&#36;${item.price}</td>
					<td>&#36;${item.overview}</td>
					<td>${item.category.name}</td>
					<td>${item.manufacturer.name}</td>
					<td><a class="btn btn-mini" href="${pageContext.request.contextPath}/admin/product-update/${item.id}"> <i class="icon-edit"></i>
							Edit
					</a> <br />
					<br />
					<a class="btn btn-mini btn-danger" href="#"
						onclick="return confirm('Are you sure you want to delete this file?')"><i
							class="icon-remove icon-white"></i>Delete</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</body>
</html>